﻿@model Ymca.Web.Models.Profile.IndexViewModel

<div class="page-hedaer">
	<h3>@Model.Id</h3>
</div>

<div class="control-group">
	<label class="control-label" for="Id">User Name</label>
	<div class="controls">
		@Html.DisplayFor(model => model.Id)
	</div>
</div>

@if (!string.IsNullOrEmpty(Model.Name))
{
	<div class="control-group">
		<label class="control-label" for="Name">Name</label>
		<div class="controls">
			@Html.DisplayFor(model => model.Name)
		</div>
	</div>	
}

@if (!string.IsNullOrEmpty(Model.Surname))
{
	<div class="control-group">
		<label class="control-label" for="Surname">Surname</label>
		<div class="controls">
			@Html.DisplayFor(model => model.Surname)
		</div>
	</div>
}

<div class="control-group">
	<label class="control-label" for="Email">Email</label>
	<div class="controls">
		@Html.DisplayFor(model => model.Email)
	</div>
</div>

@if (!string.IsNullOrEmpty(Model.Info))
{
	<div class="control-group">
		<label class="control-label" for="Info">Info</label>
		<div class="controls">
			@Html.DisplayFor(model => model.Info)
		</div>
	</div>
}

<div>
	@Html.ActionLink("Back", "Index")
</div>
